package com.tianji.api.client.remark;

import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2025/10/28 12:08
 */
@FeignClient(value = "remark-service",path = "likes",fallbackFactory = RemarkClientFallback.class)
public interface RemarkClient {
    /**
     * 1、根据业务ID集合查询点赞状态（Day6- 课堂2）
     */
    @GetMapping("list")   // localhost:8091/likes/list?bizIds=1,2,3
    Set<Long> isLiked(@RequestParam("bizIds") Iterable<Long> bizIds);
}
